<include file="Public:header" />
<div id="main" class="main" >
    <!--
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    -->
    <script src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
    <div class="content">
    <?php $type = empty( $_GET['id'] )?0:$_GET['id']; ?>
  <div class="title">新增记录 [ <a href="__URL__">返回列表</a> ]</div>
<div id="result" class="result none"></div>
<form method='post' id="form1" action="__URL__/insert/">
<table cellpadding=3 cellspacing=3 >
    <tr>
	<td class="tRight" >房间：</td>
	<td class="tLeft" >
            <notempty name="_GET.room_id">{$_GET.room_id|getModelName=Room,house_id|getModelName=House}  <input type="checkbox" name="room_id[]"  value="{$_GET.room_id}" checked="checked">{$_GET.room_id|getModelName=Room,room_no}
                <input type="hidden" name="house_id" id="house_id" value="{$_GET.room_id|getModelName=Room,house_id}">
                <else />
                    <select name="hotel" style="width:200px;" onchange="modifyHouse(this);">
                        <option value="0">--请选择公寓--</option>
                        <volist name="hotel" id="ht">
                            <option value="{$ht.id}">{$ht.name}</option>
                        </volist>
                    </select>
                    {$vo.house_id|makeHouse=1}  
            </notempty>
        </td>
        <td class="tLeft" id="room_td"><input type="radio" id="room_td"></td>
</tr>
<tr>
	<td class="tRight" >租金：</td>
	<td class="tLeft" >
            <input type="text"  name="money" value="" />
        </td>
</tr>
<tr>
	<td class="tRight" >代缴费用：</td>
	<td class="tLeft" >
            <input type="text"  name="remit_money" value="" />
        </td>
</tr>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
<tr>
	<td class="tRight" ><span class="red">*</span>交租时间：</td>
	<td class="tLeft" >
		<input type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="medium bLeft" name="pay_time" value="">
        </td>
</tr>
<tr>
	<td class="tRight" ><span class="red">*</span>实缴时间：</td>
	<td class="tLeft" >
		<input type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="medium bLeft" name="real_paytime" value="">
        </td>
</tr>
<tr>
	<td class="tRight" >提醒时间：</td>
	<td class="tLeft" >
            <input type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="medium bLeft" name="alert_time" value="">
        </td>
</tr>
<tr>
	<td class="tRight" >备注：</td>
	<td class="tLeft" ><textarea name="note" rows="5" cols="15" class="large"></textarea>
        </td>
</tr>
<tr>
	<td></td>
	<td class="center"><div style="width:85%;margin:5px">
	<div class="impBtn fLeft"><input type="submit" value="保存"  class="save imgButton"></div>
	<div class="impBtn fLeft"><input type="reset" class="reset imgButton" onclick="javascript:history.back()" value="返回" ></div>
	</div></td>
</tr>
</table>
</form>
</div>
</div>
